package com.kongmou.springReview.commonCfg.profile;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class ProfileConfig {

	@Profile("dev")
	@Bean
	DemoBean demoBean() {
		return new DemoBean("form development profile");
	}

	@Profile("prod")
	@Bean
	DemoBean prodDemoBean() {
		return new DemoBean("form production profile");
	}
}
